//
//  FoodButtons.mm
//  Meal Wheel
//
//  Created by Justin Dell on 7/3/08.
//  Copyright 2008 . All rights reserved.
//

#import "FoodButtons.h"


@implementation FoodButtons


-(IBAction)fetchBread:(id)sender {
    NSString *food;
    fetcher = [[FoodFetcher alloc]init];
    food = [fetcher getSpecificFood:"Bread"];
    
    [foodField setStringValue:food];
    
    [fetcher release];
}

-(IBAction)fetchDairy:(id)sender {
    NSString *food;
    fetcher = [[FoodFetcher alloc]init];
    food = [fetcher getSpecificFood:"Dairy"];
    
    [foodField setStringValue:food];
    
    [fetcher release];
}

-(IBAction)fetchMeat:(id)sender {
    NSString *food;
    fetcher = [[FoodFetcher alloc]init];
    food = [fetcher getSpecificFood:"Meat"];
    
    [foodField setStringValue:food];
    
    [fetcher release];
}

-(IBAction)fetchFruit:(id)sender {
    NSString *food;
    fetcher = [[FoodFetcher alloc]init];
    food = [fetcher getSpecificFood:"Fruit"];
    
    [foodField setStringValue:food];
    
    [fetcher release];
}

-(IBAction)fetchVeggie:(id)sender {
    NSString *food;
    fetcher = [[FoodFetcher alloc]init];
    food = [fetcher getSpecificFood:"Veggie"];
    
    [foodField setStringValue:food];
    
    [fetcher release];
}

-(IBAction)fetchSweet:(id)sender {
    NSString *food;
    fetcher = [[FoodFetcher alloc]init];
    food = [fetcher getSpecificFood:"Sweet"];
    
    [foodField setStringValue:food];
    
    [fetcher release];
}

@end
